package com.hardydou.system.service;

import com.hardydou.system.model.SystemJob;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author ：hardy
 * @description：
 * @date ：Created in 2020-03-16
 * @Copyright ：Hardydou.com
 */
public interface ISystemJobService {

    @Transactional
    int insert(SystemJob job);

    @Transactional
    int delete(Long roleId);


    @Transactional
    int update(SystemJob job);


    SystemJob find(Long jobId);


    List<SystemJob> find(Map params);

    List<SystemJob> findByUserId(Long userId);

    List<SystemJob> findAllByUserId(Long userId);
}
